package com.korion.channel

import okio.IOException

class Client private constructor(){

    companion object {
        fun connect(host: String, port: Int, listener: ChannelListener): IChannel?{
            try {
                val channel = Channel(host, port)
                channel.setListener(listener)
                channel.connect()
                return channel
            }catch (e: IOException){

            }
            return null
        }
    }
}